<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" href="<?php echo base_url(); ?>public/css/style.css">
        <link rel="stylesheet" href="<?php echo base_url(); ?>public/css/bootstrap.min.css">
       <!-- <link rel="stylesheet" href="<?php echo base_url(); ?>public/css/bootstrap-responsive.min.css"> -->
        <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css" />
        <link rel='stylesheet' href='http://fonts.googleapis.com/css?family=Roboto' type='text/css'>
        <script type="text/javascript" src="<?php echo base_url(); ?>public/js/jquery-1.9.1.min.js"></script>
        <script type="text/javascript" src="http://cdn.jquerytools.org/1.2.7/full/jquery.tools.min.js"></script>
        <script type="text/javascript" src="<?php echo base_url(); ?>public/js/jquery.tablesorter.min.js"></script>
        <script type="text/javascript" src="<?php echo base_url(); ?>public/js/jquery-ui.js"></script>
        <script type="text/javascript" src="<?php echo base_url(); ?>public/js/bootstrap.min.js"></script>
        <script type="text/javascript" src="<?php echo base_url(); ?>public/js/is.js"></script>
        <title>TUK Infosüsteem</title>
    </head>
    <body>
        <div class="container">
            <header class="row">
                <div class="logo">
                    <a href="<?php echo site_url("home") ?>">
                        <img src="<?php echo base_url() . 'public/img/logo.png'; ?>" alt="Tartu Ujumisklubi">
                    </a>
                </div>
                <div id="user-hud">
                    <?php
                    if ($this->session->userdata('logged_in')) {
                        ?>
                        <a class="user-button" href="<?php echo site_url("admin") ?>">Admin</a><a class="user-actions-button" data-toggle="dropdown">
                            <?php
                            echo $this->session->userdata('email')
                            ?>
                        </a>
                        <ul class="dropdown-menu">
                            <li><a tabindex="-1" href="<?php echo site_url('home/logout') ?>">Välju</a></li>
                        </ul>
                        <?php
                    } else {
                        echo "<a class=\"user-button\" href=\"" . site_url('login') . "\">Sisene</a>";
                    }
                    ?>
                </div>

                <div class="breadcrumb">  <?php echo set_breadcrumb(); ?></div>
            </header>
            <div class="row middle">
                <div class="page col-md-12">
                    <div class="row">
                        <div class="col-md-12">
                            <div class="page-header">
                                <h1>&nbsp;</h1>
                            </div>
                        </div>
                    </div>
                    <div class="row drawer">
                        <div class="col-md-2">
                            <nav class="sidebar">
                                <ul>
                                    <li><a href="<?php echo site_url('home') ?>">Avaleht</a></li>
                                    <li><a href="<?php echo site_url('records') ?>">Rekordid</a></li>
                                    <li><a href="<?php echo site_url('ranks') ?>">EUL järgud</a></li>
                                    <li><a href="<?php echo site_url('rudolph_tabelle') ?>">Rudolph Tabelle</a></li>
                                    <li class="divider"></li>
                                    <li><a href="<?php echo site_url('teams') ?>">Klubid</a></li>
                                    <li><a href="<?php echo site_url('athletes') ?>">Sportlased</a></li>
                                    <li><a href="<?php echo site_url('competitions') ?>">Võistlused</a></li>
                                </ul>
                            </nav>
                        </div>
                        <div class="col-md-10">
                            <article class="content">